﻿using System;

using SBPweb.Forge.Contracts.Events;

namespace SBPweb.Communication.Shared.Library.Commands
{

    public class CommandBaseEventArgs<T> : EventArgs
        where T : CommandBase
    {

        #region Constructor logic

        public CommandBaseEventArgs(T command)
            : base()
        {
            this.Command = command;
        }

        #endregion

        #region Property accessors

        public T Command
        {
            get;
            set;
        }

        #endregion

    }

    public class CommandBaseEventArgs : CommandBaseEventArgs<CommandBase>
    {

        #region Constructor logic

        public CommandBaseEventArgs(CommandBase command)
            : base(command)
        {
            this.Command = command;
        }

        #endregion

    }

}